package com.scpii.api.persistence.user;

import org.apache.ibatis.annotations.Param;

import com.scpii.api.domain.user.UserLinks;

public interface UserLinksMapper {
	int deleteByPrimaryKey(Long id);

	int insert(UserLinks record);

	int insertSelective(UserLinks record);

	UserLinks selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(UserLinks record);

	int updateByPrimaryKeyWithBLOBs(UserLinks record);

	int updateByPrimaryKey(UserLinks record);

	String[] selectUserLinkStatus(@Param("userId") Long userId,
			@Param("providers") String[] providers);

	UserLinks selectBySelective(UserLinks record);

	UserLinks selectAppUserLinks(@Param("appId") Long appId,
			@Param("provider") String provider,
			@Param("loginName") String loginName);

}